#include <math.h>
main(int k){for(gets(&k);~scanf("%d",&k);printf("%.f\n",pow(2,k)));}
